package com.tenny.bookstore.dao;


import com.sun.tools.javac.util.StringUtils;
import com.tenny.bookstore.bean.Book;
import com.tenny.bookstore.bean.Category;
import com.tenny.bookstore.dao.base.BaseDao;
import com.tenny.bookstore.util.DBCPUtil;
import org.apache.commons.dbutils.QueryRunner;

import java.util.List;

/**
 * Created by Tenney on 2017/3/16.
 */
public abstract class  BookDao<Book> implements  BaseDao<Book>{
    public abstract List<Book> findPageBooks(int startIndex, int offset);
    public abstract int findAllBooksNumber();
//    public  abstract List<Category> findAll();
//    public  abstract void  save(Category category);
//    public  abstract Category findById(String cId);
private QueryRunner qr = new QueryRunner(DBCPUtil.getDataSource());

    public void update(Book t){


    }
    public   void  deleteById(String id){

    }


}
